<div class="container">
    <div class="row clearfix">
        <div class="col-xs-12 column margin1 padding1">
            <form class="form-horizontal">
                <fieldset>
                <!-- 表单名称 -->
                <legend class="text-center">评论列表</legend>
                <volist name="comment" id="commentitem" key="k" empty="$empty">
                <div class="panel panel-default">
                    <div class="panel-heading" style="background-color: #333;">
                        <h3 class="panel-title" style="color:#fff;"><font style="float:right;">{$commentitem.addtime}</font><font class="glyphicon glyphicon-user">{$commentitem.username}</font></h3>
                    </div>
                    <div class="panel-body">
                        {$commentitem.comment}
                    </div>
                </div>
                </volist>
                </fieldset>
            </form>
        </div>
        <div class="col-xs-12 column margin1 padding1" align="center">
            <form class="form-horizontal"  method="POST"  action="__ROOT__/index.php/home/form/addcomment">
                <fieldset>

                <!-- 表单名称 -->
                <legend>发表评论</legend>
                <?php
                if(!isset($_SESSION['username'])){
                echo'<p>请先登录</p>';}
                else{
                echo'<input type="hidden" id="drclothesid" class="form-control" name="drclothesid" value="'.$result['id'].'">
                <input type="hidden" id="username" class="form-control" name="username" value="'.$_SESSION['username'].'">
                <div class="form-group">
                <textarea class="form-control" rows="3" name="comment" placeholder="说点什么..."></textarea>
                </div>
                <div class="form-group">
                    <label class="col-md-4 control-label" for="singlebutton"></label>
                    <div class="col-md-4">
                    <input id="singlebutton" type="submit" class="btn btn-primary button2" value="提交评论">
                    </div>
                </div>
                ';}
                ?>
                </fieldset>
            </form>
        </div>
    </div>
</div>
